package com.artpri.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodsOrder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods_order", catalog = "jpw")
public class GoodsOrder implements java.io.Serializable {

	// Fields

	private Integer goId;
	private Integer orderId;
	private Integer goodsNum;
	private String goodsName;
	private String gaPath;
	private Double goodsRealPrice;
	private Integer goodsCount;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public GoodsOrder() {
	}

	/** minimal constructor */
	public GoodsOrder(Timestamp createTime) {
		this.createTime = createTime;
	}

	/** full constructor */
	public GoodsOrder(Integer orderId, Integer goodsNum, String goodsName,
			String gaPath, Double goodsRealPrice, Integer goodsCount,
			Timestamp createTime) {
		this.orderId = orderId;
		this.goodsNum = goodsNum;
		this.goodsName = goodsName;
		this.gaPath = gaPath;
		this.goodsRealPrice = goodsRealPrice;
		this.goodsCount = goodsCount;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "go_id", unique = true, nullable = false)
	public Integer getGoId() {
		return this.goId;
	}

	public void setGoId(Integer goId) {
		this.goId = goId;
	}

	@Column(name = "order_id")
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "goods_num")
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "goods_name", length = 50)
	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Column(name = "ga_path")
	public String getGaPath() {
		return this.gaPath;
	}

	public void setGaPath(String gaPath) {
		this.gaPath = gaPath;
	}

	@Column(name = "goods_real_price", precision = 10)
	public Double getGoodsRealPrice() {
		return this.goodsRealPrice;
	}

	public void setGoodsRealPrice(Double goodsRealPrice) {
		this.goodsRealPrice = goodsRealPrice;
	}

	@Column(name = "goods_count")
	public Integer getGoodsCount() {
		return this.goodsCount;
	}

	public void setGoodsCount(Integer goodsCount) {
		this.goodsCount = goodsCount;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}